<template>
	<uni-popup ref="pay_sucess_pop" @maskClick="close()">
		<image class="top" :src="'/static/index/'+(type== 0?'pay_sucess_top':'duihuan_sucess')+'.png'"></image>
		<view class="black_1" @click="close">
			<image class="img" src="/static/index/che/qiche_1.png"></image>
			<view class="text1">
				奔驰G50
			</view>
			
		</view>
		<view class="close" @click="close">
			点击任意位置关闭
		</view>
	</uni-popup>

</template>

<script>
	export default {
		name: "paySuccess",
		data() {
			return {
				type : 0
			};
		},
		methods: {
			open(type) {
				this.type =type
				this.$refs.pay_sucess_pop.open()
			},
			close() {
				this.$refs.pay_sucess_pop.close()
			},
		}

	}
</script>

<style scoped lang="less">
	.top {
		width: 350px;
		height: 60px;
	}

	.black_1 {
		background: url(@/static/index/pay_sucess_bg.png) no-repeat;
		background-size: 100% 100%;
		text-align: center;
		height: 380px;
		.img {
			margin-top: 121px;
			// margin: auto;
			width: 100px;
			height: 100px;
		}

		.text1 {
			margin: auto;
			margin-top: 0px;
			line-height: 44rpx;
			text-align: center;
			font-size: 19rpx;
			font-weight: 400;
			color: #FFFFFF;
			width: 347rpx;
			height: 44rpx;
			background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #000000 49%, rgba(0, 0, 0, 0) 100%);
		}
	}
	.close{
		text-align: center;
		font-size: 28rpx;
		font-weight: 400;
		color: #FFFFFF;
	}
</style>